from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand
from info import create_app, db
# 用于数据库迁移，提前导入
from info import models
app = create_app('development')
manage = Manager(app)
# 迁移框架和命令的导入
Migrate(app, db)
manage.add_command('db', MigrateCommand)




if __name__ == '__main__':
    print(app.url_map)
    manage.run()
